package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_margin")
public class FMargin {
    @Id
    private Long tid;

    /**
     * 交易日期
     */
    @Column(name = "trade_date")
    private String tradeDate;

    /**
     * 交易所代码（SSE上交所SZSE深交所）
     */
    @Column(name = "exchange_id")
    private String exchangeId;

    /**
     * 融资余额(元)
     */
    private Float rzye;

    /**
     * 融资买入额(元)
     */
    private Float rzmre;

    /**
     * 融资偿还额(元)
     */
    private Float rzche;

    /**
     * 融券余额(元)
     */
    private Float rqye;

    /**
     * 融券卖出量(股,份,手)
     */
    private Float rqmcl;

    /**
     * 融资融券余额(元)
     */
    private Float rzrqye;

    /**
     * 融券余量(股,份,手)
     */
    private Float rqyl;

    public FMargin(Long tid, String tradeDate, String exchangeId, Float rzye, Float rzmre, Float rzche, Float rqye, Float rqmcl, Float rzrqye, Float rqyl) {
        this.tid = tid;
        this.tradeDate = tradeDate;
        this.exchangeId = exchangeId;
        this.rzye = rzye;
        this.rzmre = rzmre;
        this.rzche = rzche;
        this.rqye = rqye;
        this.rqmcl = rqmcl;
        this.rzrqye = rzrqye;
        this.rqyl = rqyl;
    }

    public FMargin() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取交易日期
     *
     * @return trade_date - 交易日期
     */
    public String getTradeDate() {
        return tradeDate;
    }

    /**
     * 设置交易日期
     *
     * @param tradeDate 交易日期
     */
    public void setTradeDate(String tradeDate) {
        this.tradeDate = tradeDate;
    }

    /**
     * 获取交易所代码（SSE上交所SZSE深交所）
     *
     * @return exchange_id - 交易所代码（SSE上交所SZSE深交所）
     */
    public String getExchangeId() {
        return exchangeId;
    }

    /**
     * 设置交易所代码（SSE上交所SZSE深交所）
     *
     * @param exchangeId 交易所代码（SSE上交所SZSE深交所）
     */
    public void setExchangeId(String exchangeId) {
        this.exchangeId = exchangeId;
    }

    /**
     * 获取融资余额(元)
     *
     * @return rzye - 融资余额(元)
     */
    public Float getRzye() {
        return rzye;
    }

    /**
     * 设置融资余额(元)
     *
     * @param rzye 融资余额(元)
     */
    public void setRzye(Float rzye) {
        this.rzye = rzye;
    }

    /**
     * 获取融资买入额(元)
     *
     * @return rzmre - 融资买入额(元)
     */
    public Float getRzmre() {
        return rzmre;
    }

    /**
     * 设置融资买入额(元)
     *
     * @param rzmre 融资买入额(元)
     */
    public void setRzmre(Float rzmre) {
        this.rzmre = rzmre;
    }

    /**
     * 获取融资偿还额(元)
     *
     * @return rzche - 融资偿还额(元)
     */
    public Float getRzche() {
        return rzche;
    }

    /**
     * 设置融资偿还额(元)
     *
     * @param rzche 融资偿还额(元)
     */
    public void setRzche(Float rzche) {
        this.rzche = rzche;
    }

    /**
     * 获取融券余额(元)
     *
     * @return rqye - 融券余额(元)
     */
    public Float getRqye() {
        return rqye;
    }

    /**
     * 设置融券余额(元)
     *
     * @param rqye 融券余额(元)
     */
    public void setRqye(Float rqye) {
        this.rqye = rqye;
    }

    /**
     * 获取融券卖出量(股,份,手)
     *
     * @return rqmcl - 融券卖出量(股,份,手)
     */
    public Float getRqmcl() {
        return rqmcl;
    }

    /**
     * 设置融券卖出量(股,份,手)
     *
     * @param rqmcl 融券卖出量(股,份,手)
     */
    public void setRqmcl(Float rqmcl) {
        this.rqmcl = rqmcl;
    }

    /**
     * 获取融资融券余额(元)
     *
     * @return rzrqye - 融资融券余额(元)
     */
    public Float getRzrqye() {
        return rzrqye;
    }

    /**
     * 设置融资融券余额(元)
     *
     * @param rzrqye 融资融券余额(元)
     */
    public void setRzrqye(Float rzrqye) {
        this.rzrqye = rzrqye;
    }

    /**
     * 获取融券余量(股,份,手)
     *
     * @return rqyl - 融券余量(股,份,手)
     */
    public Float getRqyl() {
        return rqyl;
    }

    /**
     * 设置融券余量(股,份,手)
     *
     * @param rqyl 融券余量(股,份,手)
     */
    public void setRqyl(Float rqyl) {
        this.rqyl = rqyl;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", tradeDate=").append(tradeDate);
        sb.append(", exchangeId=").append(exchangeId);
        sb.append(", rzye=").append(rzye);
        sb.append(", rzmre=").append(rzmre);
        sb.append(", rzche=").append(rzche);
        sb.append(", rqye=").append(rqye);
        sb.append(", rqmcl=").append(rqmcl);
        sb.append(", rzrqye=").append(rzrqye);
        sb.append(", rqyl=").append(rqyl);
        sb.append("]");
        return sb.toString();
    }
}